<?php 
	$data_table = json_decode($data_table);
?>
<html>
	<head>
		          
			<style>	
			@page { size: A4 landscape }
			@media print
			{
				p.test {font-family:times,serif; font-size:10px}
				
				table{
					border: 1px solid gray;
				}
			}
			</style>
	</head>
	<body>
	<div id="content">
	<div class="post" align="center">
        <h2 class="title">Monitoring Index Pelayanan Plasa <?=$plasa_name;?></h2>
        <h3><?=$csr_name;?></h3>
        <div style="clear: both;">&nbsp;</div>
        <h2 class="title"><?= $title ;?></h2>
			
		<table class="vertical-table reportT center" border="1">
			<tr class="tHeader"><td>Tingkat Kepuasan</td>
			<?php
				   $header = $data_table->tHeader;
				   foreach ($header as $item){
						echo '<td>'.$item.'</td>';
				   }
			?>
			<tr>
			<tr class="tYes"><td>Ya</td>
			<?php
				   $yes = $data_table->tYes;
				   foreach ($yes as $item){
						echo '<td>'.$item.'</td>';
				   }
			?>
			
			</tr>
			<tr class="tNo"><td>Tidak</td>
			<?php
				   $no = $data_table->tNo;
				   foreach ($no as $item){
						echo '<td>'.$item.'</td>';
				   }
			?>
			
			</tr>
			<tr class="tPercent"><td>%</td>
			<?php
				   $percent = $data_table->tPercent;
				   foreach ($percent as $item){
						echo '<td>'.$item.'</td>';
				   }
			?>
			
			</tr>
		</table>
			<br>
			<br>
			<br>

		<img src="<?= $img_url_pie;?>" title="Graph Pie Report">
		<img src="<?= $img_url_bar;?>" title="Graph Bar Report">
		
		</div>
	</div>
</div>

<script type="text/javascript">
//$(function(){
	window.print();
//});
</script>
	</body>
</html>